CC = g++
CFLAGS = -fsanitize=address -g -Wall -Wextra
LDFLAGS = -fsanitize=address

all: udp_server udp_client

udp_server: udp_server.cpp udp_common.hpp
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)

udp_client: udp_client.cpp udp_common.hpp
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)

clean:
	rm -f udp_server udp_client